package com.kwq.designPattern.generate.singleton;

/**
 * @author kangwanqiang
 * @date 2021/2/2
 */
public class ClientSingleton {
    public static void main(String[] args) {
        HungrySingleton hungrySingleton = HungrySingleton.getInstance();
        HungrySingleton hungrySingleton1 = HungrySingleton.getInstance();

        System.out.println(hungrySingleton.hashCode() == hungrySingleton1.hashCode());
    }
}
